﻿using System;
using System.Drawing;
using System.Windows.Forms;
using ImageFan.ImageHandling;
using ImageFan.Properties;

namespace ImageFan
{
    internal static class GlobalData
    {
        public const int ThumbnailSize = 200;

        public static readonly Image InvalidImage;
        public static readonly Image InvalidImageThumbnail;

        public static readonly Image LoadingImage;
        public static readonly Image LoadingImageThumbnail;

        public static readonly int ScreenWidth;
        public static readonly int ScreenHeight;

        public static Form MainFormInstance { get; set; }


        static GlobalData()
        {
            InvalidImage = Resources.InvalidImage;
            InvalidImageThumbnail = ImageResizer.CreateThumbnail(InvalidImage, ThumbnailSize);

            LoadingImage = Resources.LoadingImage;
            LoadingImageThumbnail = ImageResizer.CreateThumbnail(LoadingImage, ThumbnailSize);

            ScreenWidth = Screen.PrimaryScreen.Bounds.Width;
            ScreenHeight = Screen.PrimaryScreen.Bounds.Height;
        }
    }
}
